/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package view;

import com.sun.lwuit.Label;
import com.sun.lwuit.TextArea;
import com.sun.lwuit.layouts.BoxLayout;
import utils.StringUtils;
import view.commands.BackCommand;
import view.commands.EmptyCommand;

/**
 *
 * @author Kvest
 */
public class ContactsForm extends BasicForm
{
    public ContactsForm()
    {
        super("contacts");
        
        init();
    }
    
    private void init()
    {
        setLayout(new BoxLayout(BoxLayout.Y_AXIS));
        setCyclicFocus(false);
        
        TextArea contactsText = new TextArea(StringUtils.replace((new Label("contacts_text")).getText(),"\\n", "\n") , 1, 30);
        contactsText.setGrowByContent(true);
        contactsText.setEditable(false);
        
        addComponent(contactsText);
     
        addCommand(new EmptyCommand());
        addCommand(new BackCommand());
    }
}
